package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.OmcOldManSupplement;
import com.csun.cmny.provider.vo.OldManTypeStatusVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OmcOldManSupplementMapper extends Mapper<OmcOldManSupplement> {

    /**
     * query oldman special case by oldman id
     *
     * @param oldmanId the oldman id
     *
     * @return the oldman special case
     */
    String queryOldmanSpecialCaseByOldmanId(Integer oldmanId);

    /**
     * query oldman people by oldman id
     *
     * @param oldmanId  the oldman id
     *
     * @return  the oldman people type
     */
    Long selectPeopleTypeByOldmanId(Integer oldmanId);

    /**
     * 根据老人ID,改变老人支付状态
     * @param oldManSupplement
     * @return
     */
    int confirmPay(OmcOldManSupplement oldManSupplement);


    /**
     * 根据入院老人的ID添加或修改入院老人的服务类别与护理级别
     * @param omcOldManSupplement
     * @return
     */
    int updateByOldType(OmcOldManSupplement omcOldManSupplement);

    /**
     * 查询入院老人服务类别与护理级别
     * @param oldmanId
     * @return
     */
    List<OldManTypeStatusVo> selectByOldType(Integer oldmanId);

    /**
     * 清除老人缴费状态
     *
     * @param oldmanId  the oldman id
     *
     * @return  the int.
     */
    int clearPayed(Integer oldmanId);
    /*
     * 修改大健康数据
     * */
    Integer updateHealth(OmcOldManSupplement omcOldManSupplement);
}